package o;

import android.animation.Animator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class aqw {
    @Nullable
    private TimeInterpolator ˊ = null;
    private long ˋ = 300;
    private int ˎ = 1;
    private long ˏ = 0;
    private int ॱ = 0;

    public aqw(long j, long j2) {
        this.ˏ = j;
        this.ˋ = j2;
    }

    public aqw(long j, long j2, @NonNull TimeInterpolator timeInterpolator) {
        this.ˏ = j;
        this.ˋ = j2;
        this.ˊ = timeInterpolator;
    }

    public void ˊ(Animator animator) {
        animator.setStartDelay(ˋ());
        animator.setDuration(ˎ());
        animator.setInterpolator(ˏ());
        if (animator instanceof ValueAnimator) {
            ((ValueAnimator) animator).setRepeatCount(ˊ());
            ((ValueAnimator) animator).setRepeatMode(ॱ());
        }
    }

    public long ˋ() {
        return this.ˏ;
    }

    public long ˎ() {
        return this.ˋ;
    }

    public TimeInterpolator ˏ() {
        return this.ˊ != null ? this.ˊ : aqv.ॱ;
    }

    public int ˊ() {
        return this.ॱ;
    }

    public int ॱ() {
        return this.ˎ;
    }

    static aqw ˋ(ValueAnimator valueAnimator) {
        aqw o_aqw = new aqw(valueAnimator.getStartDelay(), valueAnimator.getDuration(), ˎ(valueAnimator));
        o_aqw.ॱ = valueAnimator.getRepeatCount();
        o_aqw.ˎ = valueAnimator.getRepeatMode();
        return o_aqw;
    }

    private static TimeInterpolator ˎ(ValueAnimator valueAnimator) {
        TimeInterpolator interpolator = valueAnimator.getInterpolator();
        if ((interpolator instanceof AccelerateDecelerateInterpolator) || interpolator == null) {
            return aqv.ॱ;
        }
        if (interpolator instanceof AccelerateInterpolator) {
            return aqv.ˏ;
        }
        if (interpolator instanceof DecelerateInterpolator) {
            return aqv.ˎ;
        }
        return interpolator;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        aqw o_aqw = (aqw) obj;
        if (ˋ() == o_aqw.ˋ() && ˎ() == o_aqw.ˎ() && ˊ() == o_aqw.ˊ() && ॱ() == o_aqw.ॱ()) {
            return ˏ().getClass().equals(o_aqw.ˏ().getClass());
        }
        return false;
    }

    public int hashCode() {
        return (((((((((int) (ˋ() ^ (ˋ() >>> 32))) * 31) + ((int) (ˎ() ^ (ˎ() >>> 32)))) * 31) + ˏ().getClass().hashCode()) * 31) + ˊ()) * 31) + ॱ();
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append('\n');
        stringBuilder.append(getClass().getName());
        stringBuilder.append('{');
        stringBuilder.append(Integer.toHexString(System.identityHashCode(this)));
        stringBuilder.append(" delay: ");
        stringBuilder.append(ˋ());
        stringBuilder.append(" duration: ");
        stringBuilder.append(ˎ());
        stringBuilder.append(" interpolator: ");
        stringBuilder.append(ˏ().getClass());
        stringBuilder.append(" repeatCount: ");
        stringBuilder.append(ˊ());
        stringBuilder.append(" repeatMode: ");
        stringBuilder.append(ॱ());
        stringBuilder.append("}\n");
        return stringBuilder.toString();
    }
}
